<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class InitUpdate41 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('users', function (Blueprint $table) {
            
            $table->string('apple_id', 50)->nullable()->index()->comment('apple_id'); // 销量

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('users', function (Blueprint $table) {
            // $table->renameColumn('apple_id');
            // $table->boolean('is_need_phone')->default(0)->comment('是否强制要求手机号'); 
            // $table->integer('source_type')->default(1)->index()->comment('来源 1为开盒获得  2为转售获得'); 
        });
    }
}
